package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户规范下载收藏关系表
 * </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@TableName("user_specification")
@Getter
@Setter
public class UserSpecification extends Model<UserSpecification> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 规范id
     */
	@TableField("specification_id")
	private Long specificationId;
    /**
     * 1: 下载  2：收藏 
     */
	@TableField("action_type")
	private Integer actionType;
    /**
     * 0: 正常 1：已删除
     */
	@TableField("collection_status")
	private Integer collectionStatus;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 最后修改时间
     */
	@TableField("last_modified_time")
	private Date lastModifiedTime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
